﻿using System;
using System.Collections;

namespace QAHelper.Common
{
    public abstract class Logger
    {
        #region Properties and Variables
        string _testCaseName = string.Empty;
        string _logFileName = string.Empty;
        string _description = string.Empty;
        string _fileExtenstion = string.Empty;
        static ArrayList _logList = new ArrayList();

        public string ThisDateTime
        {
            set { ;}
            get { return DateTime.Now.ToString("dd/MM/yyyy hh:mm:ss"); }
        }

        public string TestCaseName
        {
            set { _testCaseName = value; }
            get { return _testCaseName; }
        }
        public string LogFileName
        {
            set { _logFileName = value; }
            get { return _logFileName; }
        }
        public string Description
        {
            set { _description = value; }
            get { return _description; }
        }
        static ArrayList LogList
        {
            set { _logList = value; }
            get { return _logList; }
        }
        public string FileExtention
        {
            set { _fileExtenstion = value; }
            get { return _fileExtenstion; }
        }
        #endregion

        public abstract void WriteStatus(string expected, string actual, string status, string verification_condition);
        public abstract void WriteStatus(string expected, string actual, string status, string verification_condition, string reason);
        public abstract void WriteLogIntoFile();
        public abstract void WriteLogIntoFile(string workSheetName);
    }
}
